import request from "@/utils/request";

// 查询分类信息列表
export function listLootCategory(query) {
  return request({
    url: "/ds/lootCategory/list",
    method: "get",
    params: query,
  });
}

// 查询分类信息详细
export function getLootCategory(id) {
  return request({
    url: "/ds/lootCategory/" + id,
    method: "get",
  });
}

// 新增分类信息
export function addLootCategory(data) {
  return request({
    url: "/ds/lootCategory",
    method: "post",
    data: data,
  });
}

// 修改分类信息
export function updateLootCategory(data) {
  return request({
    url: "/ds/lootCategory",
    method: "put",
    data: data,
  });
}

// 删除分类信息
export function delLootCategory(id) {
  return request({
    url: "/ds/lootCategory/" + id,
    method: "delete",
  });
}

// 导出分类信息
export function exportLootCategory(query) {
  return request({
    url: "/ds/lootCategory/export",
    method: "get",
    params: query,
  });
}
